package renguanyu.app.tools.model.anjuke;

import java.util.HashMap;
import java.util.Map;

public class JsoupUtil {

    public static Map<String, String> getHeader() {
    	String randomUserAgent = UserAgentUtil.randomUserAgent();
    	System.out.println(randomUserAgent);
    	Map<String, String> headers = new HashMap<>();
		headers.put("User-Agent",randomUserAgent);
    	headers.put("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8");
    	headers.put("Accept-Language","zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2");
    	headers.put("Accept-Encoding","gzip, deflate, br");
    	headers.put("Referer","https://daqing.anjuke.com/sale/?from=HomePage_TopBar");
    	headers.put("Connection","keep-alive");
    	headers.put("Upgrade-Insecure-Requests","1");
    	headers.put("Sec-Fetch-Dest","document");
    	headers.put("Sec-Fetch-Mode","navigate");
    	headers.put("Sec-Fetch-Site","same-origin");
    	headers.put("Sec-Fetch-User","?1");
    	headers.put("TE","trailers");
        return headers;
    }

}
